import request from '@/utils/request'
// 新增老师
export function addCourse(data) {
    return request({
        url: '/admin/course',
        method: 'post',
        data,
        showLoading: true
    })
}

// 老师详情
export function getCourseDetail(id) {
    return request({
        url: '/admin/course/' + id,
        method: 'get',
        showLoading: true
    })
}
// 修改老师
export function editCourse(data) {
    return request({
        url: '/admin/course',
        method: 'put',
        data,
        showLoading: true
    })
}
// 批量删除老师
export function delCourse(idList) {
    return request({
        url: '/admin/course/' + idList,
        method: 'delete',
    })
}

export function listCourse(data) {
    return request({
        url: '/admin/course/list',
        method: 'post',
        data
    })
}
